package com.zhouchao.persistence.session;

import com.zhouchao.persistence.pojo.Configuration;
import com.zhouchao.persistence.pojo.MappedStatement;

import java.util.List;

public interface Executor {
    <T> List<T> query(Configuration configuration, MappedStatement mapperStatement, Object... params) throws Exception;

    int update(Configuration configuration, MappedStatement mapperStatement, Object params) throws Exception;

}
